package com.dhwl.hsh.driver.ui.activity;

import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;

import com.dhwl.hsh.driver.R;

import butterknife.Bind;
import butterknife.OnClick;

/**
 * 协议条款
 *
 * @author Derek.Kidd
 * @time 2016/5/4 18:53
 */
public class ProtocolListActivity extends BaseActivity {

    @Bind(R.id.layout_pro_1)
    RelativeLayout layoutPro1;
    @Bind(R.id.layout_pro_2)
    RelativeLayout layoutPro2;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_protocol_list;
    }

    @Override
    protected void initViews(Bundle savedInstanceState) {


    }

    @Override
    protected void initData() {

    }

    @OnClick({R.id.layout_pro_1, R.id.layout_pro_2})
    public void onClick(View view) {
        Intent intent = new Intent(this, WebViewActivity.class);
        switch (view.getId()) {
            case R.id.layout_pro_1:
                intent.putExtra(WebViewActivity.WEBVIEW_TITLE, getString(R.string.app_driver_pro));
                intent.putExtra(WebViewActivity.WEBVIEW_URL, "www.baidu.com");
                break;
            case R.id.layout_pro_2:
                intent.putExtra(WebViewActivity.WEBVIEW_TITLE, getString(R.string.app_service_pro));
                intent.putExtra(WebViewActivity.WEBVIEW_URL, "www.baidu.com");
                break;
        }
        startActivity(intent);
    }
}
